SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwtReparticiones AS SELECT dbo.tb_Reparticiones.idReparticion AS ID, dbo.tb_Reparticiones.Reparticion, dbo.tb_Reparticiones.Descripcion, dbo.tb_Reparticiones.EsEscuela, dbo.tb_Organizaciones.Nombre AS Organizacion FROM dbo.tb_Reparticiones INNER JOIN dbo.tb_Organizaciones ON dbo.tb_Reparticiones.Organizacion = dbo.tb_Organizaciones.idOrganizaciones
GO
GRANT SELECT ON  [dbo].[vwtReparticiones] TO [Informatica]
GRANT INSERT ON  [dbo].[vwtReparticiones] TO [Informatica]
GRANT DELETE ON  [dbo].[vwtReparticiones] TO [Informatica]
GRANT UPDATE ON  [dbo].[vwtReparticiones] TO [Informatica]
GRANT SELECT ON  [dbo].[vwtReparticiones] TO [SoloVer]
GO
